<?php

namespace app\common\controller;

class Factory extends Common
{
    //获取CourseClass类-课程分类
    public static function newCourseClass()
    {
        static $instanceCourseClass = null;
        if (is_null($instanceCourseClass)) {
            $instanceCourseClass = new CourseClass();
        }
        return $instanceCourseClass;
    }

    //获取CourseTeacher类-老师信息
    public static function newCourseTeacher()
    {
        static $instanceCourseTeacher = null;
        if (is_null($instanceCourseTeacher)) {
            $instanceCourseTeacher = new CourseTeacher();
        }
        return $instanceCourseTeacher;
    }

    //获取Course类-课程信息
    public static function newCourse()
    {
        static $instanceCourse = null;
        if (is_null($instanceCourse)) {
            $instanceCourse = new Course();
        }
        return $instanceCourse;
    }


}
